package ${package.Controller};

import java.util.HashMap;
import org.springframework.web.bind.annotation.RequestMapping;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>
<#if to??>
import abc.${package.ModuleName}.${dsnamePackage}.to.${to};
</#if>
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
* <p>
    * ${table.comment!} 前端控制器
    * </p>
*
* @author ${author}
*/
<#if table.comment>
@Tag(name = "${table.comment!}")
</#if>
<#if restControllerStyle>
@RestController
<#else>
@Controller
</#if>
@RequestMapping("<#if context?? && context!="/">${context}</#if><#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if><#if dsnameController??>/${dsnameController}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
<#if kotlin>
class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
<#else>
    <#if superControllerClass??>
public class ${table.controllerName} extends ${superControllerClass} {
    <#else>
public class ${table.controllerName} {
    </#if>

}
</#if>
